<?php $this->load->view("common/page_header");?>
<div id="body_main">
	<div id="admin_header">
		<?php $this->load->view('common/admin_header'); ?>
		<div class="top_cleft">
			<ul>
			</ul>
			<div class="clear"></div>
		</div>
	</div>
	<div id="admin_content">
		<div id="admin_navigator">
			<ul class="navigator">
				<li class="current"><a href="/console/recharge">手工充值</a></li>
				<li><a href="/console/recharge/records">充值记录</a></li>
			</ul>
		</div>
		<div id="admin_body">
			<div class="margin_top15 margin_bottom10">
				<span class="bold">为以下会员救急卡充值</span>
				<a href="javascript:void(0)" id="recharge-button" class="orange_button" style="float:right;#margin-top:-26px;">充值</a>
				<div class="clear"></div>
			</div>
			<form method="post" action="" id="recharge-form">
			<table class="a_table">
				<tr>
					<th>会员id</th>
					<th>昵称</th>
					<th>充值数</th>
					<th width="25%">金额（元）</th>
				</tr>
				
				<?php for($i= 1; $i <= 2; $i++) { ?>
				<tr>
					<td><input type="text" name="data[<?php echo $i;?>][id]"/></td>
					<td><input type="text" name="data[<?php echo $i;?>][nick]"/></td>
					<td><input type="text" id="<?php echo $i;?>" name="data[<?php echo $i;?>][count]" class="count"/></td>
					<td><span id="count<?php echo $i;?>"></span></td>
				</tr>
				<?php } ?>
			</table>
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<?php $this->load->view("common/footer");?>	
</div>
<script type="text/javascript">
$(document).ready(function(){
	$(".count").change(function() {
		$("#count" + $(this).attr("id")).html($(this).val()*10 + "元");
	});
	$("#recharge-button").click(function() {
		$("#recharge-form").submit();
	});
});
</script>	
<?php $this->load->view("common/page_footer");?>